//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.vere.rpc.proxy;

import java.lang.reflect.Proxy;

public class RPCProxy {
    private RPCHandler invocationHandler;

    public RPCProxy() {
    }

    public void setRPCHandler(RPCHandler invocationHandler) {
        this.invocationHandler = invocationHandler;
    }

    public Object getProxy(Class<?> clazz) {
        Object newProxyInstance = Proxy.newProxyInstance(clazz.getClassLoader(), new Class[]{clazz}, this.invocationHandler);
        return newProxyInstance;
    }
}
